<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title></title>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/bootstrap-responsive.css" />
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/style.css" />
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/bootstrap.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/ckform.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/common.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/showdate.js"></script>
	<script src="${pageContext.request.contextPath}/js/jquery.min.js?v=2.1.4"></script>
	<script src="${pageContext.request.contextPath}/js/commons_date.js"></script>
	<script>

		$(function () {
			$.ajax({
				url:"${pageContext.request.contextPath}/blog/blogDetailById",
				type:"post",
				data:{"bid":${bid}},
				dataType:"json",
				cache:false,
				success:function (rs) {
					$("#uname").text(rs.user.uname);
					$("#email").text(rs.user.email);
					$("#btitle").text(rs.btitle);
					$("#date").text(get_date(rs.date));
				}
			});

			$.ajax({
				url:"${pageContext.request.contextPath}/evaluate/evaluateById",
				type:"post",
				data:{"bid":${bid}},
				dataType:"json",
				cache:false,
				success:function (rs) {
					$("#econtent").text(rs.econtent);
					$("#etime").text(get_date(rs.etime));
				}
			})
		})

	</script>
    <style type="text/css">
        body {font-size: 20px;
             padding-bottom: 40px;
             background-color:#e9e7ef;
             font-size:17px;
        }
        .sidebar-nav {
            padding: 9px 0;
        }

        @media (max-width: 980px) {
            /* Enable use of floated navbar text */
            .navbar-text.pull-right {
                float: none;
                padding-left: 5px;
                padding-right: 5px;
            }
        }
    </style>
</head>
<h3><strong>博客信息：</strong></h3>
      <table class="table table-condensed">
               <tr>              
	              <td width="18%" height="30" align="center">博主名称：</td>
	              <td width="82%" class="word_grey"><span id="uname"></span></td>
	            </tr>
	            <tr>
	              <td height="28" align="center">邮箱</td>
	              <td height="28" ><span id="email"></span></td>
	            </tr>
				  <tr>
					  <td height="28" align="center">发布内容：</td>
					  <td height="28" ><span id="btitle"></span></td>
				  </tr>
	            <tr>
	              <td height="28" align="center">发布时间：</td>
	              <td height="28" ><span id="date"></span></td>
	            </tr>
	  </table>

<h3><strong>全部评价内容：</strong></h3>
<table class="table table-bordered">
	<thead>
		<tr>
			<th>评价内容</th>
			<%--<th>评价人</th>--%>
			<th>评价时间</th>
			<th>操作</th>
		</tr>
	</thead>
	<tbody id="evaluates">
		<%--追加评论信息--%>
		<td><span id="econtent"></span></td>
		<td><span id="etime"></span></td>
		<td><button type="button"  id="deletecomment">删除</button></td>
	</tbody>
</table>
</body>

</html>
